/* 默认dark主题 */
:root {
  font-size: 16px;
  line-height: 24px;
  font-weight: 400;
  color-scheme: light dark;

  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
  --bg-color: #fff;
  --header-bg-color: rgba(245, 247, 250, 0.6);
  --text-color: rgba(0, 0, 0, 0.87);
  --a-color: rgba(102, 110, 255, 0.87);
  --a-color-hover: rgba(83, 91, 242, 0.87);
  --button-red: linear-gradient(270deg, #ec6851 0%, #db4044 100%);
  --button-red-hover: linear-gradient(270deg, #95d475 0%, #529b2e 100%);
}

a {
  font-weight: 500;
  color: var(--a-color);
  text-decoration: inherit;
}

a:hover {
  color: var(--a-color-hover);
}

body {
  margin: 0;
  display: flex;
  place-items: center;
  min-width: 375px;
  min-height: 100vh;
}

/* light主题 */
:root[theme='dark'] {
  --bg-color: rgb(13, 17, 23);
  --text-color: rgba(255, 255, 255, 0.87);
  --header-bg-color: rgba(255, 255, 255, 0.2);
}

#app {
  margin: 0 auto;
  text-align: center;
  width: 100vw;
  height: 100vh;
  /* 字体颜色 */
  color: var(--text-color);
  /* 背景颜色 */
  background-color: var(--bg-color);
  transition: background-color 1s ease;
}

p {
  margin: 0;
  padding: 0;
}

/* 系统的白天模式 prefers-color-scheme: light */
@media (prefers-color-scheme: light) {
  :root {
    color: var(--text-color);
    background-color: var(--bg-color);
  }
}